//
//  FieldNode.h
//  DataCollector
//
//  Created by jiro on 12/06/29.
//  Copyright 2012 jiro music. All rights reserved.
//

#import <Cocoa/Cocoa.h>

#import "ExpressionNode.h"

class FieldNode : public ExpressionNode
{
public:

	FieldNode( NSString* tableName, NSString* fieldName, NSString* alias, bool isDistinctArg );

	FieldNode( NSString* tableName, NSString* fieldName, NSString* alias );

	FieldNode( NSString* tableName, NSString* fieldName );

	FieldNode( NSString* fieldName );

	FieldNode();

	virtual NSString* query() const;

private:

	NSString* tableName;
	
	NSString* fieldName;

	NSString* alias;

	BOOL isDistinct;
};